<template>
  <div class="app-page" id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import {initApp} from "@/utils/handler";

export default {
  name: 'app',
  components: {

  },
  mounted() {
    initApp()
  }
}
</script>

<style>
@import url('@/assets/css/normalize.css');
:root {
  --themeColor:#00b894;
  --background:#fff;
  --fontColor: #243237;
  --liHoverBackground:rgb(224,237,211);
  --inputBgColor:rgb(255,254,250);
  --inputLineColor:rgb(65,168,99);
  --lineColor:rgb(225,212,178);
  --scrollbarColor:rgb(207,181,106);
  --fontSize: 14px;
  --fontFamily:'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html,body{
  background-color:  var(--background);
  font-size: var(--fontSize);
  color: var(--fontColor);
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.markdown-body {
  --bgColor-default:tranparent !important;
  --fgColor-default:var(--fontColor) !important;
}
.markdown-body pre{
  background-color: var(--liHoverBackground) !important;
  padding: 15px;
  box-sizing:  border-box;
  border-radius: 8px;
  width: 100%;
  overflow: scroll;
  position: relative;
  padding-bottom: 45px;
}

.markdown-body .code-tool-box {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  position: absolute;
  bottom: 10px;
  left: 0;
}
.markdown-body .code-tool-box button{
  margin: 0 10px;
  background-color: var(--inputBgColor);
  border: 1px solid var(--lineColor);
  border-radius: 4px;
  color: var(--themeColor);
  cursor: pointer;
  opacity: 0.7;
}
.markdown-body .code-tool-box button:hover{
  opacity: 1;
}

html,body{
  scrollbar-width: thin;
  scrollbar-color: transparent  transparent;
}

/* WebKit 样式 */
html::-webkit-scrollbar {
  width: 1px;
  display: none;
}
body::-webkit-scrollbar {
  width: 1px;
  display: none;
}

.markdown-body pre{
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--lineColor) var(--background);

  /* WebKit */
  overflow: auto;
}
.markdown-body pre::-webkit-scrollbar{
  width: 3px;
}

div {
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--lineColor) var(--background);

  /* WebKit */
  overflow: auto;
}

/* WebKit 样式 */
div::-webkit-scrollbar {
  width: 1px;
  display: none;
}



div::-webkit-scrollbar-track {
  background: var(--background);
}

div::-webkit-scrollbar-thumb {
  background: var(--lineColor);
  border-radius: 4px;
  width: 1px;
}

div::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbarColor);
}
</style>
